package com.shengyin.ec.service.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shengyin.ec.model.dao.admin.AdminDao;
import com.shengyin.ec.model.entity.Company;
import com.shengyin.ec.model.entity.Personal;


@Service("adminService")
public class AdminServiceImpl implements AdminService {
	
	@Autowired
	AdminDao adminDao;
	
	@Override
	public boolean checkAdmin(String adminName, String pwd){
		boolean isCorrect = adminDao.checkAdmin(adminName, pwd);
		return isCorrect;
	}
	
	
   public Company getCompanyByAdminName(String adminName){
	   
	   return adminDao.getCompanyByAdminName(adminName);
	   
   }
}

